package cn.com.elite;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.util.Map;

public class test {
	public static String f_path="C:\\a";
	public static void main(String[] args) throws IOException{
		ReadEmail readmail=new ReadEmail();
		Map map1=readmail.readmail("C:\\5CFDEBA0-E6F0-2136-DD55-1C831EB244B7.Eml", f_path);
		MailSend mailsend=new MailSend();
		boolean bb=mailsend.send("dswangx@tpi.cntaiping.com","smtp.sina.net","dswangx@tpi.cntaiping.com","dswangx",map1);
//		boolean aa=mailsend.send("joinzhao@elitecrm.com","mail.elitecrm.com","tonyxu@elitecrm.com","0308",map1);
		System.out.println(bb);

	}

}
